package com.skyMailbox.sms.mappers;

import com.skyMailbox.sms.to.Palabra;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class PalabraRowMapper implements RowMapper {

    public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
        Palabra palabra = new Palabra();
        palabra.setC3_indice(rs.getInt("c3_indice"));
        palabra.setC3_palabra(rs.getString("c3_palabra"));
        return palabra;
    }
}

